package csdn.xiancheng.li02;
//1.创建Runnable实现类
public class MyRannable implements Runnable{
//2.重写run方法
    @Override
    public void run() {
        String name=Thread.currentThread().getName();
        for (int i = 0; i < 10; i++) {
            System.out.println("线程"+name+i);
        }
    }
    
}
